﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true" CodeFile="WIN04_2E.aspx.cs" Inherits="IFRS_WIN04_2E" %>

<%@ Register Assembly="vsm.CustomControl" Namespace="vsm.CustomControl" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="../Content/plugins/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        window.SetValueGLAccount = function (Value1, Value2) {
            document.getElementById("<%= hidGL_ACCOUNT.ClientID %>").value = Value1;
            document.getElementById("<%= txtGL_ACCOUNT.ClientID %>").value = Value2;
        }

        window.SetValueCostCenter = function (Value1, Value2) {
            document.getElementById("<%= hidCOST_CENTER.ClientID %>").value = Value1;
            document.getElementById("<%= txtCOST_CENTER.ClientID %>").value = Value2;
        }

        window.SetValueCurrency = function (Value1, Value2) {
            document.getElementById("<%= hidCURRENCY_CODE.ClientID %>").value = Value1;
            document.getElementById("<%= txtCURRENCY_CODE.ClientID %>").value = Value2;
        }

        window.SetValueRefInterest = function (Value1, Value2) {
            document.getElementById("<%= hidREFERENCE_INTEREST_CD.ClientID %>").value = Value1;
            document.getElementById("<%= txtREFERENCE_INTEREST_NM.ClientID %>").value = Value2;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="container-custom">
        <div align="right">
            <asp:Button ID="btnConfirm" runat="server" Text="<%$Resources:ifrsField,CONFIRM%>" onclick="btnConfirm_Click" />
        </div>
        <div class="table_master">
            <fieldset class="fsStandard" style="padding-bottom: 5px;">
                <div class="table_detail">
                    <asp:PlaceHolder ID="form_control" runat="server">
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblTRANSACTION_DATE" runat="server" Text="<%$Resources:ifrsField,DATE_TRANSACTION%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtTRANSACTION_DATE" runat="server" SkinID="TextBoxWithNoColor" CssClass="datepicker"></asp:TextBox>
                            <span class="red">*</span>
                                <asp:RequiredFieldValidator ID="reqTRANSACTION_DATE" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblACCOUNT_NO" runat="server" Text="<%$Resources:ifrsField,NO_ACCOUNT%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtACCOUNT_NO" runat="server" SkinID="TextBoxWithNoColor"></asp:TextBox>
                            <span class="red">*</span>
                                <asp:RequiredFieldValidator ID="reqACCOUNT_NO" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblCOST_CENTER" runat="server" Text="<%$Resources:ifrsField,COST_CENTER%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <cc1:TextboxAutoComplete ID="txtCOST_CENTER" runat="server" SkinID="TextBoxWithNoColor"></cc1:TextboxAutoComplete>
                            <asp:Button ID="btnCOST_CENTER" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,POPUP%>"
                                CausesValidation="False" />
                            <asp:HiddenField ID="hidCOST_CENTER" runat="server" />
                            <span class="red">*</span>
                                <asp:RequiredFieldValidator ID="reqCOST_CENTER" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblGL_ACCOUNT" runat="server" Text="<%$Resources:ifrsField,GL_ACCOUNT%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <cc1:TextboxAutoComplete ID="txtGL_ACCOUNT" runat="server" SkinID="TextBoxWithNoColor"></cc1:TextboxAutoComplete>
                            <asp:Button ID="btnGL_ACCOUNT" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,POPUP%>"
                                CausesValidation="False" />
                            <asp:HiddenField ID="hidGL_ACCOUNT" runat="server" />
                            <span class="red">*</span>
                                <asp:RequiredFieldValidator ID="reqGL_ACCOUNT" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblCURRENCY_CODE" runat="server" Text="<%$Resources:ifrsField,CURRENCYCODE%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <cc1:TextboxAutoComplete ID="txtCURRENCY_CODE" runat="server" SkinID="TextBoxWithNoColor"></cc1:TextboxAutoComplete>
                            <asp:Button ID="btnCURRENCY_CODE" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,POPUP%>"
                                CausesValidation="False" />
                            <asp:HiddenField ID="hidCURRENCY_CODE" runat="server" />
                            <span class="red">*</span>
                                <asp:RequiredFieldValidator ID="reqCURRENCY_CODE" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblREFERENCE_INTEREST_CD" runat="server" Text="<%$Resources:ifrsField,REFERENCEINTERESTCD%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <cc1:TextboxAutoComplete ID="txtREFERENCE_INTEREST_NM" runat="server" SkinID="TextBoxWithNoColor"></cc1:TextboxAutoComplete>
                            <asp:Button ID="btnREFERENCE_INTEREST_CD" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,POPUP%>"
                                CausesValidation="False" />
                            <asp:HiddenField ID="hidREFERENCE_INTEREST_CD" runat="server" />
                            <span class="red">*</span>
                                <asp:RequiredFieldValidator ID="reqREFERENCE_INTEREST_CD" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblADDITIONAL_INTEREST" runat="server" Text="<%$Resources:ifrsField,ADDITIONALINTEREST%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <cc1:TextboxNumber ID="txtADDITIONAL_INTEREST" runat="server" SkinID="TextBoxWithNoColor" TypeTextbox="Currency" 
                                AllowMaximumNumber="999999999" AllowNegativeNumber="True" DigitDecimal="2"></cc1:TextboxNumber>
                            <span>&nbsp;%</span>
                            <span class="red">*</span>
                                <asp:RequiredFieldValidator ID="reqADDITIONAL_INTEREST" runat="server"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                        </div>
                        <div class="colinfo_single">
                            <asp:CheckBox ID="chkIS_COMPENSATE" runat="server" Text="<%$Resources:ifrsField,ISCOMPENSATE%>" />
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblIS_CONFIRMED" runat="server" Text="<%$Resources:ifrsField,LIST_STATUS%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtIS_CONFIRMED" runat="server" SkinID="TextBoxWithNoColor" Text="<%$Resources:ifrsField,CREATE%>"></asp:TextBox>
                        </div>
                    </div>
                    </asp:PlaceHolder>
                </div>
                <div class="colbtn">
                    <div >
                        <asp:Button ID="btnSAVE" runat="server" Text="<%$Resources:ifrsButton,SAVE%>" onclick="btnSAVE_Click"
                             />&nbsp;
                        <asp:Button ID="btnCANCEL" runat="server" CausesValidation="false" Text="<%$Resources:ifrsButton,CANCEL%>" 
                            onclick="btnCANCEL_Click"  />
                        &nbsp;
                    </div>
                </div>
            </fieldset>
        </div>
    </div>
    <asp:HiddenField ID="hidSubsidyLoanID" runat="server" />
    <script src="../Content/js/Currency.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../Content/plugins/custom.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".datepicker").initDatepicker();
        });
    </script>
</asp:Content>

